Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xpath selectors to locate within elements. #3672

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

garg3133
Copy link
Member

@garg3133 garg3133 commented Apr 3, 2023

Earlier, xpath selectors were always locating from the root even when they were chained to locate within an element. Prepending . on the selectors resolves the issue.

Earlier:

image

Now:

image

@garg3133 garg3133 added the v3 label Apr 3, 2023
@beatfactor beatfactor merged commit 9f32a7d into nightwatchjs:main Apr 5, 2023
@garg3133 garg3133 deleted the v3-xpath-chaining branch April 5, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants